home *** CD-ROM | disk | FTP | other *** search
- Path: news.sprintlink.net!snet!CT1!usenet
- From: Marc <marcd@mail.snet.net>
- Newsgroups: comp.lang.c
- Subject: Parallel Ports
- Date: 7 Mar 1996 05:13:44 GMT
- Organization: Southern New England Telephone
- Message-ID: <4hlra8$llk@CT1.SNET.Net>
- NNTP-Posting-Host: ht-sh2-port46.snet.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.22SNET (Windows; U; 16bit)
-
- My question:
-
- I would like to use the parallel port of a PC for controlling hardware.
-
- I can control the output of the 8 data bits using:
-
- #define PORT 0x3BC /* LPT 1 */
- outp(PORT,value);
-
- where 'value' is a hex number from 0x00 to 0xFF.
-
- The problem is I need to control another bit (any other pin) along
- with the strobe. Any help would be greatly appreciated. Email
- respones are welcome to: marcd@snet.net
-
- Thank you,
- Marc
-
-